Component({
  externalClasses: ['bg-calss'],

  properties: {
    show: {
      type: Boolean,
      value: false
    },

    isBgClick: {
      type: Boolean || String,
      value: false
    }

  },

  methods: {

    /*背景事件（点击去掉隐藏组件）*/
    _topBg() {
      let td = this.data;

      if (td.isBgClick) {
        this.setData({
          show: !td.show
        });
      }
    }
  }
});